package test1;

import java.time.LocalDate;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-11-23
 * Time: 8:33
 */

/**
 * 计算利息的解接口
 */
public interface InterestCounter {
    /**
     * 计算当前存款的利息,
     * @param money
     * @param interest
     * @param begin  存款开始时间
     * @param end    存款结束时间
     * @return
     */
    String countInterest(double money, double interest, LocalDate begin, LocalDate end);
}
